package abstract2;

public class Test {
    public static void main(String[] args) {
        //目标：抽象方法的好处
        //抽象方法交给子类重新实现
        Animal a = new Cat();
        a.eat();
        Animal b = new Dog();
        b.eat();
    }
}
